<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
    <!-- 可选的Bootstrap主题文件（一般不使用） -->
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap-theme.min.css" rel="stylesheet">

    <title>秒杀列表页</title>
</head>
<body>
    <div class="container">
        <div class="panel panel-default" >
            <div class="panel-heading text-center">
                <h2>秒杀列表</h2>
            </div>
            <div class="panel-body" >
                <table class="table table-hover" >
                    <thead>
                        <tr>
                            <th>名称</th>
                            <th>库存</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>创建时间</th>
                            <th>详情页</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr th:each="list : ${model.list}">
                            <td th:text="${list.name}"></td>
                            <td th:text="${list.number}"></td>
                            <td th:text="${#dates.format(list.startTime, 'dd/MMM/yyyy HH:mm:ss')}"></td>
                            <td th:text="${#dates.format(list.endTime, 'dd/MMM/yyyy HH:mm:ss')}"></td>
                            <td th:text="${#dates.format(list.createTime, 'dd/MMM/yyyy HH:mm:ss')}"></td>
                            <td ><a class="btn btn-info" th:href="@{'/seckill/'+${list.seckillId}+'/detail'}" target="_blank">link</a></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</body>

<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</html>